import React, { Component } from 'react'
import "./main.scss"
import LeftSide from '../../components/Leftside/leftside'
import { remove } from '../../axios/localstorage'
import {  withRouter } from 'react-router-dom'
import Header from '../../components/Header/header';
import Footer from '../../components/Footer/footer'

class main extends Component {

    state = {
        show:false
    }

    goOut=()=>{

        remove('token');

        this.props.history.push('/');

    }



    render() {
        return (
            <div className="user_main" >
                <Header isUser={1}></Header>
                <div className="umain">
                    <div className="ucen">
                        <LeftSide></LeftSide>
                        <div className="m_right">
                            {this.props.children}
                        </div>
                    </div>
                </div>
                <Footer></Footer>
            </div>
        )
    }
}


export default withRouter(main);